package com.woniu.job.mapper;

import com.woniu.job.entity.Favorite;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.job.entity.Resume;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author song
 * @since 2019-12-24
 */
@Component
public interface FavoriteMapper extends BaseMapper<Favorite> {

    @Select("select * from resume where userId=#{id} and status = '1'")
     Resume getByIdAndStatus(String id);

}
